package de.gameduell.framework.facebook.app.popups {
	import flash.events.Event;

	public class BuyCashPopup extends PyramidBasePopup {
		public function BuyCashPopup() {
			super("buyCashPopup", "buyCashPopup", 0, true);
			
			localeData.setValue("mayaCashValue", "40"); // TODO - config
			localeData.setValue("mayaCashPrice", "5"); // TODO - pricing
			localeData.setValue("currency", "$"); // TODO - pricing
			
			registerButton("buyCashButton", buyCash);
			registerButton("skipButton", hide);
		}
		
		private function buyCash(event:Event):void {
			hide();
			controller.openPaymentPopup();
		}
	}
}